<template>
	<view class="list-author">
		<view class="list-author-image">
			<image :src="item.avatar" mode="aspectFill"></image>
		</view>
		<view class="list-author-content">
			<view class="list-author-content_title">{{item.author_name}}</view>
			<view class="list-author-content_des">
				<view class="list-author-content_des-label">{{item.professional}}</view>
				<view class="list-author-content_des-info">
					<text>发帖 {{item.article_ids.length}}</text>
					<text>粉丝 {{item.fans_count}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"list-author",
		props:{
			item:{
				type:Object,
				default(){
					return {}
				}
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
.list-author{
	display: flex;
	margin: 0 10px;
	padding: 10px 0;
	box-sizing: border-box;
	border-radius: 5px;
	border-bottom: 1px #f5f5f5 solid;
	.list-author-image{
		height: 40px;
		width: 40px;
		overflow: hidden;
		flex-shrink: 0;
		image{
			width: 100%;
			height: 100%;
		}
	}
	.list-author-content{
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		width: 100%;
		padding-left: 10px;
		.list-author-content_title{
			position: relative;
			font-size: 14px;
			line-height: 1.2;
			color: #333;
			font-weight: 700;
			padding-right: 30px;
		}
		.list-author-content_des{
			display: flex;
			justify-content: space-between;
			font-size: 12px;
			.list-author-content_des-label{
				color: #666;
			}
			.list-author-content_des-info{
				color: #999;
				line-height: 1.5;
				text:first-child{
					margin-right: 10px;
				}
			}
		}
	}
}
</style>
